package com.bianguo.android.functiondemo.retrofit;

import io.reactivex.Observable;
import io.reactivex.functions.Function;

public class BaseFunc<T> implements Function<Throwable, Observable<? extends T>> {

    @Override
    public Observable<? extends T> apply(Throwable throwable) {
        return Observable.error(FactoryException.analysisException(throwable));
    }
}
